home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15311 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
  4. Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada)
  5. Date: Thu, 04 Apr 96 15:37:57 GMT
  6. Organization: none
  7. Message-ID: <828632277snz@genesis.demon.co.uk>
  8. References: <JSA.96Feb16135027@organon.com> <31582A63.4BE9@east.thomsoft.com> <4jeel1$erh@tpd.dsccc.com> <JSA.96Mar29195546@organon.com> <4jp388$d56@tpd.dsccc.com> <828445854snz@genesis.demon.co.uk> <emery-0204960656230001@line030.nwm.mindlink.net>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <emery-0204960656230001@line030.nwm.mindlink.net>
  15.            emery@grebyn.com "David Emery" writes:
  16.  
  17. >In article <828445854snz@genesis.demon.co.uk>, fred@genesis.demon.co.uk wrote:
  18. >> ANSI C doesn't define UNIX OS calls so isn't really relevant to your point.
  19. >> Unix calls are reasonably standardised for C through the likes of POSIX and
  20. >> X/Open which is natural because C is the core development language for
  21. >> the platform.
  22. >
  23. >This is not exactly true.  The POSIX.1 standard make extensive use of
  24. >facilities in the ANSI C standard.  Chapter 2 contains a list of library
  25. >calls of ANSI C "included" in POSIX (e.g. malloc(), while Chapter 8 
  26. >contains C-specific facilities, that refine the behavior of some ANSI 
  27. >C library routines such as file stream IO.
  28.  
  29. ANSI C defines the ANSI standard library calls. While UNIX(tm) validation
  30. may require these that is down to the UNIX and from that the POSIX
  31. specification, not the ANSI standard: there is nothing in the ANSI standard
  32. that states the UNIX system interface must be one thing or another, rather
  33. it is the UNIX standards that define the UNIX system interface with
  34. reference to the ANSI C standard.
  35.  
  36. It may be a fine point but it is important. UNIX existed before ANSI C.
  37.  
  38. -- 
  39. -----------------------------------------
  40. Lawrence Kirby | fred@genesis.demon.co.uk
  41. Wilts, England | 70734.126@compuserve.com
  42. -----------------------------------------
  43.